package com.css.mapper;

import com.css.pojo.User;
import org.apache.ibatis.annotations.Insert;


import java.util.List;
import java.util.Map;
import java.util.Objects;


public interface UserMapper {
    List<User> getUserList();
    User getUserById(int id);
    User getUserById2(Map<String,Objects>map);
    int addUser(User user);
    int addUser2(Map<String, Objects> map);
    int updateUser(User user);
    List<User>getUserLimit(Map<String,Objects>limitParma);
    @Insert("update user set name=#{name}, pwd=#{pwd} where id=#{id}")
    int annoUpdate(User user);
}
